/*
 * Package: org.grassfield.common.entity
 * FileName: Comment.java
 *  
 * Created by pandian on Jan 28, 2011
 */
package bean;

import java.util.Date;

/**
 * The Class Comment.
 */
public class Comment {
	private Long id;
	private String commentText;
	private String type;
	private Date addedDate;
	private User user;
	
	/**
	 * Gets the id.
	 * 
	 * @return the id
	 */
	public Long getId() {
		return id;
	}
	
	/**
	 * Sets the id.
	 * 
	 * @param id
	 *            the new id
	 */
	public void setId(Long id) {
		this.id = id;
	}
	
	/**
	 * Gets the comment text.
	 * 
	 * @return the comment text
	 */
	public String getCommentText() {
		return commentText;
	}
	
	/**
	 * Sets the comment text.
	 * 
	 * @param commentText
	 *            the new comment text
	 */
	public void setCommentText(String commentText) {
		this.commentText = commentText;
	}
	
	/**
	 * Gets the type.
	 * 
	 * @return the type
	 */
	public String getType() {
		return type;
	}
	
	/**
	 * Sets the type.
	 * 
	 * @param type
	 *            the new type
	 */
	public void setType(String type) {
		this.type = type;
	}
	
	/**
	 * Gets the added date.
	 * 
	 * @return the added date
	 */
	public Date getAddedDate() {
		return addedDate;
	}
	
	/**
	 * Sets the added date.
	 * 
	 * @param addedDate
	 *            the new added date
	 */
	public void setAddedDate(Date addedDate) {
		this.addedDate = addedDate;
	}
	
	/**
	 * Gets the user.
	 * 
	 * @return the user
	 */
	public User getUser() {
		return user;
	}
	
	/**
	 * Sets the user.
	 * 
	 * @param user
	 *            the new user
	 */
	public void setUser(User user) {
		this.user = user;
	}
	
	/* (non-Javadoc)
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		return "Comment [id=" + id + ", commentText=" + commentText + "]";
	}
}
